package cn.bx.bid.ctrl;


import cn.bx.bid.entity.Administrative;
import cn.bx.bid.service.AdministrativeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

@org.springframework.stereotype.Controller
@RequestMapping("Administrative")
public class AdministrativeController {
    @Autowired
    private AdministrativeService administrativeService;

    @RequestMapping(value = "findAdministratives",produces="application/json;charset=UTF-8")
    @ResponseBody
    public List<Administrative> findAdministratives(){
        List<Administrative> list = this.administrativeService.findALL();
        return list;
    }

}
